using System;
class HelloWorld 
{
    static void Izvade(string[,] grupas)
    {
        for(int y = 0; y < grupas.GetLength(0); y++)
        {
            Console.WriteLine($"{y+1}. grupa");
            for(int x = 0; x < grupas.GetLength(1); x++)
            {
                Console.Write(grupas[y,x] + " ");
            }
            Console.WriteLine();
        }
    }
    static void Main() 
    {
        string[,] grupas = {
            {"andrejs","ēriks","emīlija"},
            {"rolands","Renārs","edgars"}
        };
        Izvade(grupas);
    }
}